//
//  HandeAR.h
//  HandeAR
//
//  Created by HandeIdealVision on 2017/10/30.
//  Copyright © 2017年 HandeIdealVison. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol HandeARDelegate<NSObject>
- (void)triggerShareAction:(NSData *)imageData;
- (void)didOnFoundAR;

//errorCode 101表示网络异常
- (void)onUnityException:(int)errorCode;


//- (void)willShowARScan;
//- (void)didOnFoundQR:(NSString *)message;
@end

@interface HandeAR : NSObject
@property (nonatomic, weak) id<HandeARDelegate> delegate;

//1. 设置登录状态 isLogined为YES表示登录，为NO表示未登录
+ (void)setLoginStatus:(BOOL)isLogined;

//2. 设置年报数据,jsonString参看annualreport.json
+ (void)setAnnualReport:(NSString *)jsonString;

//3. 设置发布时间，格式yyyy-MM-dd HH:mm:ss
+ (void)setPublishTime:(NSString *)time;

//4. 设置AR资源下载目录，拼接文件名为最终下载地址
+ (void)setARResourceURL:(NSString *)url;

//5. 设置页面布局，上面高度，下面高度
+ (void)setLayoutTopHeight:(CGFloat)tHeight bottomHeight:(CGFloat)bHeight;

//设置代理
+ (void)setDelegate:(id<HandeARDelegate>)delegate;

+ (void)pauseAudio;

+ (void)resumeAudio;

+ (void)saveImageWhenSnapshot:(BOOL)needSaved;
@end
